from django.urls import path,include
from . import views

urlpatterns = [
  path('goods',views.goods_list,name='goods-list'),
  path('goods/<int:pk>',views.goods_detail,name='goods-detail'),
  path('goods/<int:pk>/reviews',views.goods_reviews,name='goods-reviews'),
  path('goods/<int:pk>/recommend',views.goods_recommend,name='goods-recommend'),
  #新增管理路由
  path('admin/login/',views.admin_login,name='admin-login'),
  path('admin/profile/',views.admin_profile_manage,name='admin-profile'),
  path('admin/change-password/',views.admin_change_password,name='admin-change-password'),
  path('admin/upload-avatar/',views.admin_upload_avatar,name='admin-upload-avatar'),
  path('admin/dashboard/',views.admin_dashboard_stats,name='admin-dashboard'),
  path('admin/logs/',views.admin_logs,name='admin-logs'),
  path('admin/goods/',views.admin_goods_manage,name='admin-goods-list'),
  path('admin/goods/<int:pk>/',views.admin_goods_manage,name='admin-goods-detail')
]